package com.ydc.ln.tutorial.j2se.ms;

/**
 * 关于i++
 * 
 * @author ydc
 * @date 下午12:00:08 2013-7-10
 */
public class IplusTest {
    static {
        int x = 5;
    }
    static int x, y;

    public static void main(String[] args) {
        new IplusTest().test02();
    }

    public void test02() {
        int j = 0;
        for (int i = 0; i < 100; i++) {
            j = j++;
        }
        System.out.println(j);
    }

    public void test01() {
        x--;
        myMethod();
        System.out.println(x + y++ + x);
    }

    public static void myMethod() {
        y = x++ + ++x;
    }
}
